//
//  UILable + Extension.swift
//  weibo
//
//  Created by 王、小胜 on 16/7/25.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

extension UILabel {
    

 convenience init(title:String ,color:UIColor = UIColor.darkGrayColor() ,fontSize: CGFloat = 14 ) {
   self.init()
    
    text = title
    //颜色
    textColor = color
    //字体大小
    font = UIFont.systemFontOfSize(fontSize)
    //行数
    numberOfLines = 0
    //居中显示
    textAlignment = NSTextAlignment.Center
    
    
    }

}
